<?php /* Smarty version 2.6.16, created on 2012-07-20 10:29:15
         compiled from my_review.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'nl2br', 'my_review.tpl', 42, false),)), $this); ?>
   <div id="paging">  
	<div class="content">
   		
				<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'user_tabs.tpl', 'smarty_include_vars' => array('active_tab' => 'reviews')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
				
        <div class="clear"></div>
        <div class="tabular-content">
            <div class="tab_sub">
            	<ul>
                	<li><a href="javascript:;">My Reviews</a></li>
					<li><a href="my_video_review.php" class="active">My Video Reviews</a></li>
					<li><a href="coach_review.php" class="active">Reviews to User</a></li>
					<li><a href="video_review.php" class="active">Reviews to video</a></li>
                    <!--li><a href="my_video_review.php">My Videos</a></li-->
					<!--li><a href="#">Coach Reviews by me</a></li-->
					<!--li><a href="#">Video Reviews by me</a></li-->
                </ul>
            </div>
			
           
            <!--div class="tab_pagination">
            	<span class="page-records"><strong>1 - 20 of 60</strong></span> <span class="left-arr"><a href="#"></a></span><span class="right-arr"><a href="#"></a></span>
            </div-->   
            <div class="clear"></div>  
			<?php if ($this->_tpl_vars['NummyReview'] > 0): ?>                   
            <div>
			  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tabular_row">
				<?php unset($this->_sections['myrevrow']);
$this->_sections['myrevrow']['name'] = 'myrevrow';
$this->_sections['myrevrow']['loop'] = is_array($_loop=$this->_tpl_vars['myReviewArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['myrevrow']['show'] = true;
$this->_sections['myrevrow']['max'] = $this->_sections['myrevrow']['loop'];
$this->_sections['myrevrow']['step'] = 1;
$this->_sections['myrevrow']['start'] = $this->_sections['myrevrow']['step'] > 0 ? 0 : $this->_sections['myrevrow']['loop']-1;
if ($this->_sections['myrevrow']['show']) {
    $this->_sections['myrevrow']['total'] = $this->_sections['myrevrow']['loop'];
    if ($this->_sections['myrevrow']['total'] == 0)
        $this->_sections['myrevrow']['show'] = false;
} else
    $this->_sections['myrevrow']['total'] = 0;
if ($this->_sections['myrevrow']['show']):

            for ($this->_sections['myrevrow']['index'] = $this->_sections['myrevrow']['start'], $this->_sections['myrevrow']['iteration'] = 1;
                 $this->_sections['myrevrow']['iteration'] <= $this->_sections['myrevrow']['total'];
                 $this->_sections['myrevrow']['index'] += $this->_sections['myrevrow']['step'], $this->_sections['myrevrow']['iteration']++):
$this->_sections['myrevrow']['rownum'] = $this->_sections['myrevrow']['iteration'];
$this->_sections['myrevrow']['index_prev'] = $this->_sections['myrevrow']['index'] - $this->_sections['myrevrow']['step'];
$this->_sections['myrevrow']['index_next'] = $this->_sections['myrevrow']['index'] + $this->_sections['myrevrow']['step'];
$this->_sections['myrevrow']['first']      = ($this->_sections['myrevrow']['iteration'] == 1);
$this->_sections['myrevrow']['last']       = ($this->_sections['myrevrow']['iteration'] == $this->_sections['myrevrow']['total']);
?>
                  <tr <?php if ($this->_sections['myrevrow']['index']%2 != 0): ?>class="alter"<?php endif; ?>>
                    <td width="50" valign="top">
					<?php if ($this->_tpl_vars['myReviewArr'][$this->_sections['myrevrow']['index']]['photo'] != ''): ?>
					<img src="uploaded/user_images/thumbs/<?php echo $this->_tpl_vars['myReviewArr'][$this->_sections['myrevrow']['index']]['photo']; ?>
" border="0" />
					<?php else: ?>
					<img src="images/avatar_smallest.jpg" border="0" />
					<?php endif; ?></td>
                    <td width="100" valign="top"><strong><a href="<?php echo $this->_tpl_vars['myReviewArr'][$this->_sections['myrevrow']['index']]['link']; ?>
"><?php echo $this->_tpl_vars['myReviewArr'][$this->_sections['myrevrow']['index']]['name']; ?>
</a></strong><br />
					<i><?php echo $this->_tpl_vars['myReviewArr'][$this->_sections['myrevrow']['index']]['user_type']; ?>
</i>
					</td>
                    <td width="100" valign="top" style="padding-right:10px;"><strong><?php echo $this->_tpl_vars['myReviewArr'][$this->_sections['myrevrow']['index']]['review_date']; ?>
</strong></td>
					<td width="250" valign="top" style="padding-right:10px;"><?php echo ((is_array($_tmp=$this->_tpl_vars['myReviewArr'][$this->_sections['myrevrow']['index']]['review_comment'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</td>
                    <td valign="top">
						<div class="review_card_block">
                 <!-- Score Area -->
                <div id="scoreCard">
                    <ul>
						<?php if ($this->_tpl_vars['myReviewArr'][$this->_sections['myrevrow']['index']]['rating'] != 0): ?>
                        <li id="Overall" class="tTip">
						<span class="someClass" title="<?php echo $this->_tpl_vars['UserReview'][$this->_sections['rrow']['index']]['rating_overall_tooltip']; ?>
">
						<strong><?php echo $this->_tpl_vars['myReviewArr'][$this->_sections['myrevrow']['index']]['rating']; ?>
</strong><span>Overall</span>
						</span>
						</li>
						<?php endif; ?>
						<?php unset($this->_sections['k']);
$this->_sections['k']['name'] = 'k';
$this->_sections['k']['loop'] = is_array($_loop=$this->_tpl_vars['myReviewArr'][$this->_sections['myrevrow']['index']]['individual']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['k']['show'] = true;
$this->_sections['k']['max'] = $this->_sections['k']['loop'];
$this->_sections['k']['step'] = 1;
$this->_sections['k']['start'] = $this->_sections['k']['step'] > 0 ? 0 : $this->_sections['k']['loop']-1;
if ($this->_sections['k']['show']) {
    $this->_sections['k']['total'] = $this->_sections['k']['loop'];
    if ($this->_sections['k']['total'] == 0)
        $this->_sections['k']['show'] = false;
} else
    $this->_sections['k']['total'] = 0;
if ($this->_sections['k']['show']):

            for ($this->_sections['k']['index'] = $this->_sections['k']['start'], $this->_sections['k']['iteration'] = 1;
                 $this->_sections['k']['iteration'] <= $this->_sections['k']['total'];
                 $this->_sections['k']['index'] += $this->_sections['k']['step'], $this->_sections['k']['iteration']++):
$this->_sections['k']['rownum'] = $this->_sections['k']['iteration'];
$this->_sections['k']['index_prev'] = $this->_sections['k']['index'] - $this->_sections['k']['step'];
$this->_sections['k']['index_next'] = $this->_sections['k']['index'] + $this->_sections['k']['step'];
$this->_sections['k']['first']      = ($this->_sections['k']['iteration'] == 1);
$this->_sections['k']['last']       = ($this->_sections['k']['iteration'] == $this->_sections['k']['total']);
?>
						<?php if ($this->_tpl_vars['myReviewArr'][$this->_sections['myrevrow']['index']]['individual'][$this->_sections['k']['index']]['rating_category'] == 'Knowledge'): ?>
                        <li id="Knowledge" class="tTip">
						<span class="someClass">
						<strong><?php echo $this->_tpl_vars['myReviewArr'][$this->_sections['myrevrow']['index']]['individual'][$this->_sections['k']['index']]['rating']; ?>
</strong>
						<span><?php echo $this->_tpl_vars['myReviewArr'][$this->_sections['myrevrow']['index']]['individual'][$this->_sections['k']['index']]['rating_category']; ?>
</span>
						</span>
						</li>
						<?php endif; ?>
						<?php if ($this->_tpl_vars['myReviewArr'][$this->_sections['myrevrow']['index']]['individual'][$this->_sections['k']['index']]['rating_category'] == 'Structure'): ?>
                       <li id="Structure" class="tTip">
					   <span class="someClass" >
					   <strong><?php echo $this->_tpl_vars['myReviewArr'][$this->_sections['myrevrow']['index']]['individual'][$this->_sections['k']['index']]['rating']; ?>
</strong><span>Structure</span>
					   </span>
					   </li>
					   <?php endif; ?>
					   <?php if ($this->_tpl_vars['myReviewArr'][$this->_sections['myrevrow']['index']]['individual'][$this->_sections['k']['index']]['rating_category'] == 'Communication'): ?>
                        <li id="Communication" class="tTip">
						<span class="someClass">
						<strong><?php echo $this->_tpl_vars['myReviewArr'][$this->_sections['myrevrow']['index']]['individual'][$this->_sections['k']['index']]['rating']; ?>
</strong><span>Communication</span>
						</span>
						</li>
						<?php endif; ?>
						<?php if ($this->_tpl_vars['myReviewArr'][$this->_sections['myrevrow']['index']]['individual'][$this->_sections['k']['index']]['rating_category'] == 'Professionalism'): ?>
                         <li id="Professionalism" class="tTip">
						 <span class="someClass" title="<?php echo $this->_tpl_vars['UserReview_Individual'][$this->_sections['rrow']['index']][$this->_sections['k']['index']]['rating_category_tooltip']; ?>
">
						 <strong><?php echo $this->_tpl_vars['myReviewArr'][$this->_sections['myrevrow']['index']]['individual'][$this->_sections['k']['index']]['rating']; ?>
</strong><span>Professionalism</span>
						 </span>
						 </li>
						 <?php endif; ?>
						<?php endfor; endif; ?>
                    </ul>
                </div>
                </div>
					</td>
					<!--<td valign="top"><?php echo ((is_array($_tmp=$this->_tpl_vars['myReviewArr'][$this->_sections['myrevrow']['index']]['review_comment'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</td>
                    <td width="100" align="right" valign="top"><strong><?php echo $this->_tpl_vars['myReviewArr'][$this->_sections['myrevrow']['index']]['rating']; ?>
</strong></td>-->
                  </tr>
                 <?php endfor; endif; ?>                          
                </table>
				 
            </div>
        	<div class="clear"></div>
            <br />
            <div class="tab_sub">
            	&nbsp;
            </div>
            <div class="tab_search">
            	&nbsp;
            </div>
            <div class="tab_pagination">
            	<?php if ($this->_tpl_vars['pagination_arr'][1]): ?>
				 <div class="clear"></div>
				  <div class="pagin">
					 <ul>
					   <?php echo $this->_tpl_vars['pagination_arr'][1]; ?>

					 </ul>
				  </div>
				 <?php endif; ?>
            </div>   
            <div class="clear"></div> 
			<?php else: ?>
				<div align="left" style="padding:10px;">No record found</div>
			<?php endif; ?>
      </div>
   </div>
</div>